<?PHP echo('<?xml version="1.0" encoding="utf-8"?>');?>
<?PHP
include '../admin/m/base/mod_display.php';
include '../admin/m/base/mod_sql.php';
include '../admin/m/base/m_paginator.php';
include '../admin/m/content/m_content.php';
//include '../admin/m/content/m_content_access.php';
include '../admin/m/content/m_content_category.php';
//include '../admin/m/base/m_content_access.php';
include '../admin/m/config.php';
global $conf;
session_start();


$q = str_replace($conf->absolute_path, "", $_POST['xmlURL']);
$qm = explode("/",$q);
$c_content=new content;
$view=false;
if(!empty($qm[1]) && $qm[0]=='play')
{
	$c_content->where['id']=$qm[1];
	$c_content->get_content();
	$c_content->get_content_extras();
	$content=$c_content->piece;
	$view=true;
}

//	$view=true;
if($view)
{
	

?>
<settings>
	
        <server><?PHP echo $content['url'];?></server>
        <filename><?PHP echo $content['video_file'];?></filename>
		<url>url<?PHP echo $_POST['xmlURL'];?></url>
		<ap><?PHP print_r($content['url']);?></ap>
		<setbuffer><?PHP echo $content['buffer'];?></setbuffer>
		<myvolume>.5</myvolume>
		<information><?PHP echo $content['title'];?></information>
		<myemail>email: <?PHP print_r($_SESSION['user_email']);?></myemail>
		<islive>false</islive>
		<token>token</token>
		<issecure>false</issecure>
</settings>
<?PHP } ?>